package ControlLayer;
import ModelLayer.*;
import java.util.ArrayList;


/**
 * Write a description of class ItemCtrl here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class ItemCtrl
{
    // instance variables - replace the example below with your own
    private static ItemCategoryContainer itemCategoryCont = new ItemCategoryContainer();

    /**
     * Constructor for objects of class ItemCtrl
     */
    public ItemCtrl()
    {
        // initialise instance variables
    }

    
    /**
     * Rent Item Methods Part
     * 
     */
    
    public String getRentItemCategoryName()
    {
        return itemCategoryCont.getRentItemCategoryName();
    }
    
    public RentItem getRentItem(long _id)
    {
        return itemCategoryCont.getRentItem(_id);
    }
    
    public void createRentItem(RentItem _item)
    {
        itemCategoryCont.createRentItem(_item);
    }
    
    public void updateRentItem(RentItem _item)
    {
        itemCategoryCont.updateRentItem(_item);
    }
    
    public void removeRentItem(long _id)
    {
        itemCategoryCont.removeRentItem(_id);
    }
    
    public ArrayList<RentItem> listAllRentItems()
    {
        return itemCategoryCont.listAllRentItems();
    }
    
    /** 
     * Sell Item Methods part 
     * 
     * 
     */
    
    public String getSellItemCategoryName()
    {
        return itemCategoryCont.getSellItemCategoryName();
    }
    
    public SellItem getSellItem(long _id)
    {
        return itemCategoryCont.getSellItem(_id);
    }
    
    public void createSellItem(SellItem _item)
    {
        itemCategoryCont.createSellItem(_item);
    }
    
    public void updateSellItem(SellItem _item)
    {
        itemCategoryCont.updateSellItem(_item);
    }
    
    public void removeSellItem(long _id)
    {
        itemCategoryCont.removeSellItem(_id);
    }
    
    public ArrayList<SellItem> listAllSellItems()
    {
        return itemCategoryCont.listAllSellItems();
    }
}
